import { HashMap } from '@kit.ArkTS'
import { ApLog } from './HiAnspLog'

// const map:HashMap<string,Object> = new HashMap()

export namespace AnspGlobalObj{
  export
  function  get<T>(key: string): any {
    // ApLog.d(`get by key :${key},${map.length}`,"AnspGlobalObj")
    return globalThis[key] as T
  }

  export
  function set(key: string, value: any) {
    // ApLog.d(`set by key :${key}`,"AnspGlobalObj")
    globalThis[key] = value
  }
}

